package com.yc.damai.damaiindex.web.fegin;

import com.yc.damai.bean.Result;
import com.yc.damai.entity.DmProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/9/6
 * Email haijunzhou@hnit.edu.cn
 */
@FeignClient(value="damai-other",fallback = OtherActionImpl.class)
public interface OtherAction {

    @RequestMapping("queryHots")
    List<?> queryHots();

    @RequestMapping("/dmProduct/querySecKillProduct")
    List<DmProduct> querySecKillProduct();

    @RequestMapping("/dmProduct/updateSecKillProduct")
    Result updateSecKillProduct(@RequestBody List<DmProduct> products);

}
